import request from "../utils/requst"


//提交设备点检配置内容
export const applyCheckContentConfig = (data) => {
  return request({
    method: 'POST',
    url: '/api/check/applyCheckContentConfig',
    data: {
      data 
    }
  })
}
//获取点检记录
export const getCheckInfoList = () => {
  return request({
    method: 'GET',
    url: '/api/check/getCheckInfoList',
    data: {}
  })
}

//获取设备相应的点检内容列表
export const getDeviceCheckContentList = (device) => {
  return request({
    method: 'POST',
    url: '/api/check/getDeviceCheckContentList',
    data: {
      device
    }
  })
}

//获取设备相应的点检内容列表
export const getDeviceCheckContentDetail = (contentId) => {
  return request({
    method: 'POST',
    url: '/api/check/getDeviceCheckContentDetail',
    data: {
      contentId
    }
  })
}